package com.wuchao.interfaces;

import java.util.List;

/**
 * 作者：吴超
 * 邮箱：wuchao_19931120@163.com
 * 时间：2021-11-13
 * 描述：
 */

public class Salary extends absEmployee{

    private double salary;

    public Salary(String name, String address, int number, double salary) {
        super(name, address, number);
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Salary{}";
    }

    @Override
    public void showSalary() {
        System.out.println(this.salary);
    }

    public static void main(String[] args) {
        Salary salary = new Salary("wuchao", "shenzheng", 1, 10000);
        System.out.println(salary);
    }
}
